package domain;

import dto.UserDto;

import java.util.UUID;

/**
 * Created by zhifu on 2015/3/24.
 */
public class User extends AbstractDomain{
    private String name;
    private String email;
    private Integer age;

    public User(){}
    public User(UserDto userDto){
        update(userDto);
    }

    public void update(UserDto userDto) {
        this.name = userDto.getName();
        this.age = userDto.getAge();
        this.email = userDto.getEmail();
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }
}
